package com.lmm.lcbusiness.lcbusiness.pages.richtxt;


import android.os.Bundle;
import android.support.annotation.Nullable;


import com.lmm.lcbusiness.lcbusiness.AppBaseActivity;
import com.lmm.lcbusiness.lcbusiness.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xmgong on 2017/6/1.
 * 预览效果
 */
public class RichViewActivity extends AppBaseActivity {


    public static final String RichDataKey = "richdata";
    RichTxtView mRichTxtView;
    List<RichTxtModel> mRichTxtModelList = new ArrayList<>();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_richview);
        setActionBarTitle("预览");
        mRichTxtView = findViewById(R.id.richview);
        if (getIntent().hasExtra(RichDataKey)) {
            mRichTxtModelList = (List<RichTxtModel>) getIntent().getSerializableExtra(RichDataKey);
            mRichTxtView.setRichTxtModelList(mRichTxtModelList);
        }
    }
}
